import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

// API请求
import network from "@/common/initiateRequest.js"
Vue.prototype.$net = network;


import common from "@/common/common.js"
Vue.use(common);
Vue.prototype.$f = common;

//引入vuex
import store from './store'


// 自定义全局组件
import customTabbar from './components/custom-tabbar.vue'
import topNav from './components/top-nav.vue'
Vue.component('custom-tabbar', customTabbar)
Vue.component('top-nav', topNav)

const app = new Vue({
    ...App,
	store
})

// http拦截器
// import httpInterceptor from '@/common/http.interceptor.js'
// Vue.use(httpInterceptor, app)

app.$mount()
